<include file="Core:Public:header" />
{:W('Navigation')}
<script src="__PUBLIC__/js/datepicker/WdatePicker.js"></script>
<script charset="utf-8" src="__PUBLIC__/js/editor/kindeditor.js"></script>
<script charset="utf-8" src="__PUBLIC__/js/editor/lang/zh_CN.js"></script>
<script>
	KindEditor.ready(function(K) {
			window.editor = K.create('#content',{
			uploadJson:"{:U('core/file/editor')}"
		});
	});
</script>
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">添加外卖单</div>
		<div class="row-table-body">
			<form class="form-horizontal " action="{:U('chrm/order/add')}" method="post">
				<p class="form-title">添加外卖单 &nbsp;&nbsp;<a href="javascript:history.go(-1);">返回</a></p>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">外卖单状态</label>
					<div class="col-sm-5">
						
						<label class="radio-inline">
						  <input type="radio" name="type" value="1" checked="checked"> 正常单
						</label>
						<label class="radio-inline">
						  <input type="radio" name="type" value="2"> 超时单
						</label>
						<label class="radio-inline">
						  <input type="radio" name="type" value="3"> 异常单
						</label>
						<label class="radio-inline">
						  <input type="radio" name="type" value="4"> 欺诈单
						</label>
						<label class="radio-inline">
						  <input type="radio" name="type" value="5"> 赔餐单
						</label>
					</div>
				</div>	
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">配送员</label>
					<div class="col-sm-3">
						<input class="form-control" type="hidden" name="executor_id" id="executor_id" />
						<input class="form-control" type="text" readonly="true" name="executor_name" id="executor_name"/>
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">外卖单创建时间</label>
					<div class="col-sm-3">
						<input class="form-control" type="text" value="{:date('Y-m-d H:i:s')}" name="creattime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
					</div>
				</div>	
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">备注内容</label>
					<div class="col-sm-8">
						<textarea id="content" name="remark" style="width:800px;height:300px;"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">操作人</label>
					<div class="col-sm-3">
						<input class="form-control" type="text" readonly="true" value="{:session('name')}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-3">
						<input name="submit" class="btn btn-primary" type="submit" value="保存"/>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" class="btn" value="取消" onclick="javascript:history.go(-1);"/>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<script>
	$(function(){
		$('#executor_name').click(function(){
			$('#alert').modal({
				show:true,
				remote:'{:U("core/user/getSubUserDialog","self=1")}'
			});
		});
	});
</script>
<include file="Core:Public:alert" />
<include file="Core:Public:footer" />